<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<title>我的商店</title>

		<link rel="stylesheet" href="assets/css/bootstrap.min.css">
		<link rel="stylesheet" href="assets/css/ie7.css">
		<link rel="stylesheet" href="assets/css/style.css">				
		<link rel="stylesheet" href="assets/css/font-awesome.min.css">
		<link rel="stylesheet" href="assets/css/plugins.css">		
		<link rel='stylesheet' href="css/style.css" type='text/css' />
		<link rel="stylesheet" href="css/reset.css">
		<link rel="stylesheet" href="css/carts.css">
		<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
	</head>

	<body>
		
		<header class="header-area header-sticky">
			<div class="header-container">
				<div class="row">
					<div class="col-lg-5 display-none-md display-none-xs">
						<div class="ht-main-menu">
							<nav>
								<ul>
									<li class="active">
										<a href="businesslist">我的商店</a>
									</li>
								</ul>
							</nav>
						</div>
					</div>
					
					<div class="col-lg-5 col-sm-8">
						<div class="header-content d-flex justify-content-end">
							<div class="search" style="background: url(assets/img/bg/11.jpg);">
							<div class="search_form">
								<form action="${path }/BusinessSearch" method="get">
									<input type="text" name="searchWord" placeholder="你要搜寻的商品..."  style="background:url(assets/img/bg/11.jpg);width: 150px;border: 1px solid #aaa;">
									<input type="submit" value="搜索" style="background:url(assets/img/bg/11.jpg);width: 50px;height: 34px;text-align: center;
									">
								</form>
							</div>
						</div>
							<div class="settings-wrapper">
							<a style="width: 90px; font-size: 12px;">欢迎您,<i>${username.username }</i></a>
						</div>

						<div class="settings-wrapper">
							<a href="login.jsp">
								<input style="position: absolute; border: none;width: 70px;height: 40px;font-size: 12px;color: orangered; background: url(assets/img/bg/11.jpg);" type="submit" name="" value="点击退出" />
							</a>
						</div>
							
						</div>
					</div>
				</div>
			</div>						
		</header>
		
		
		<section class="cartMain">
			<div class="cartMain_hd">
				<ul class="order_lists cartTop">
					<li class="list_chk">
						<!--所有商品全选-->
						<input type="checkbox" id="all" class="whole_check">
						<label for="all"></label> 全选
					</li>
					<li class="list_con">商品信息</li>
					<li class="list_info">商品描述</li>
					<li class="list_price">单价</li>
					<li class="list_op">操作</li>
					
				</ul>
			</div>
			<c:forEach items="${products }" var="p">
				<div class="cartBox">

					<div class="order_content">
						<ul class="order_lists">
							<li class="list_chk"><input type="checkbox" id="checkbox_6"
								class="son_check"> <label for="checkbox_6"></label></li>

							<li class="list_con">
								<div class="list_img">
									<a><img
										src="${path }/assets/img/featured/${p.listimg }"></a>
								</div>
								<div class="list_text">
									<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${p.name }</p>
								</div>
							</li>
							
							<li class="list_info">
								<p>${p.description}</p>
							</li>
							<li class="list_price">
								<p class="price">￥${p.price }</p>
							</li>
							<li class="list_op">
								<p class="del">
									<a href="Productupdate?id=${p.id }">修改商品信息</a>
									
								</p>
								<p class="del">
									<a href="deleteProduct?id=${p.id}">删除商品</a>
									</p>
							</li>
							
						</ul>
					</div>
				</div>
			</c:forEach>


			<!--底部-->
			<div class="bar-wrapper">
				<div class="bar-right">
					<a href="AddCommoditySelection.jsp"><button style="text-align: center;width: 100px;height: 50px;font-size: 20px;">添加商品</button></a>
				</div>
			</div>
		</section>
		<script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/plugins.js"></script>
		<script src="assets/js/ajax-mail.js"></script>
		<script src="assets/js/main.js"></script>
		
	</body>
	<script src="js/jquery-1.11.1.min.js"></script>
	<script src="js/carts.js"></script>
</html>